/** 存放所有健身房模块相关接口 */
import myaxios from "../MyAxios";
import URLENV from "@/http/BaseUrl";
const JSFURL = URLENV.JSFURL;

const CoachApi = {

  /**列出教练列表 */
  coachList(params){
    let url = JSFURL + "/coach/trends_coach"
    return myaxios.get(url,params)
  },

  /**查询所有教练类型 */
  queryAllTypes(){
    let url = JSFURL + "/coach/fitness_type"
    return myaxios.get(url)
  },

  /** 新增教练接口 */
  add(params){
    let url = JSFURL + '/coach/coach_add'
    return myaxios.post(url,params)
  },
  /** 删除教练接口 */
  delete(params){
    let url = JSFURL + '/coach/coach_del'
    return myaxios.post(url,params)
  },
  /** 通过ID查找教练信息 */
  queryById(params){
    let url = JSFURL + '/coach/by_coach_id'
    return myaxios.get(url,params)
  },

  /** 修改教练信息 */
  update(params){
    let url = JSFURL + '/coach/coach_update'
    return myaxios.post(url,params)
  }

}

export default CoachApi